from AStock.ASAnalysis import ASSingleGrowth, ASDoubleGrowth
import unittest


class TestASAnalysis(unittest.TestCase):

    def testASSingleGrowth(self):
        sg = ASSingleGrowth('20200930')
        sg.run(save_to_db=False, save_to_file=True)

    def testASDoubleGrowth(self):
        sg = ASDoubleGrowth('20200930', calc_date='20201101')
        sg.run(save_to_db=False, save_to_file=True)
